package demo1;

/**
 * @Author: Lenovo
 * @Date: 2024/5/19 12:58
 * @description:
 */
public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }
    public void bark(){
        System.out.println(this.name+" 正在汪汪叫...");
    }
    @Override
    public void eat() {
        System.out.println(this.name+ "正在狗粮...");
    }
}
